package com.pda.xinmazhi.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinmazhi.R;
import com.pda.xinmazhi.bean.DeliveryInfoBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class MachineDetailAdapter extends BaseAdapter<DeliveryInfoBean.DetailVosBean> {
    public MachineDetailAdapter(int layoutResId, @Nullable List<DeliveryInfoBean.DetailVosBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DeliveryInfoBean.DetailVosBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_latheName,item.getStartPoint());
        helper.setText(R.id.tv_processName,item.getDestination());
        helper.setText(R.id.tv_endTime,item.getOutNum());
        helper.setText(R.id.tv_status,item.getStatus());
    }
}
